<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>index</title>
	<style type="text/css">
		* {
			padding: 0;
			margin: 0;
		}

		#divMax {
			width: 680px;
			background-color: rgba(206, 206, 200, 0.2);
			padding: 10px 10px 10px 10px;
			margin: auto;
			margin-top: 5px;
			border-radius: 5px;
		}

		#divCanvas {
			background-color: rgba(236, 236, 230, 0.5);
			border-radius: 5px;
			width: 678px;
			height: 678px;
			/* float: left; */
		}

		#function {
			border: 1px solid rgb(159, 159, 159);
			margin-top: 3px;
			padding: 3px 0px 0px 0px;
		}

		.funleft {
			float: left;
			width: 350px;
			padding-top: 4px;
		}

		#function button {
			padding: 0;
			transition-duration: 0.5s;
			-webkit-transition-duration: 0.5s;
			height: 45px;
			width: 78px;
			margin-left: 6px;
			margin-right: -3px;
			margin-bottom: 12px;
			font-size: 15px;
			background-color: rgba(0, 68, 123, 0);
			border-radius: 8px;
			border: 2px solid rgb(73, 157, 249);
			color: rgba(0, 138, 251, 0.8);
		}

		#yanmo {

			/* float: left; */
			font-size: 15px;
			margin: 2px 2px 8px 0px;
			width: 100%;
		}

		#generateData {
			float: left;
			margin-left: 6px;
			/* height: 165px; */
		}

		#generateData textarea {
			width: 310px;
			height: 80px;
			font-size: 18px;
			float: left;
			resize: none;
			display: block
		}

		#generateData button {
			transition-duration: 0.5s;
			-webkit-transition-duration: 0.5s;
			padding: 0;
			margin: 10px 0 0 0;
			width: 120px;
			height: 50px;
			color: #fff;
			border: 2px solid rgba(73, 157, 249, 0.5);
			background-color: rgba(0, 138, 251, 0.5);
		}

		#function button:hover {
			background-color: rgba(0, 138, 251, 0.5);
			color: #000;
			box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2), 0 7px 19px 0 rgba(0, 0, 0, 0.15);
			border: 2px solid rgba(0, 138, 251, 0.2);
		}

		#data button:hover {
			background-color: #f4f4f4;
			color: rgb(0, 138, 251);
		}
	</style>
	<script type="text/javascript" src="qrCode.js"></script>
</head>

<body>

	<div id="divMax">
		<div id="divCanvas">
			<canvas id="qrCanvas" width="672px" height="672px" style="margin: 3px;"></canvas>
		</div>
		<div id="function">
			<div class="funleft">
				<button id="lookFor">寻像图形</button>
				<button id="separator">分隔图形</button>
				<button id="location">定位图形</button>
				<button id="adjust">纠正图形</button>
				<button id="format">格式信息</button>
				<button id="versionMessage">版本信息</button>
				<button id="line">走位路线</button>
				<button id="result" style="float: right;height: 90px; margin-right: 10px; margin-top: 3px;">生成</button>
				<button id="cover" style="width: 121px;">掩膜</button>
				<button id="data" style="width: 121px;">数据码</button>

			</div>

			<div id="generateData">
				<div id="yanmo">
					<span>掩 摸 参 考 ：</span>
					<select name="select" id="select"
						style="font-size: 16px; width: 68%; text-align: center; text-align-last: center;">
						<option value="000">0 0 0</option>
						<option value="001">0 0 1</option>
						<option value="010">0 1 0</option>
						<option value="011">0 1 1</option>
						<option value="100">1 0 0</option>
						<option value="101">1 0 1</option>
						<option value="110">1 1 0</option>
						<option value="111">1 1 1</option>
					</select>
				</div>

				<textarea type="text" value="" name="textData" id="edtext" spellcheck="false"></textarea>
				<div>
					<button id="clear" style="margin-top: 3px; width: 150px;">清除图形</button>
					<button id="submitData" style="margin-top: 3px;margin-left: 9px; width: 150px;">最优图形</button>
				</div>
			</div>
			<p style="clear: both;"></p>
		</div>
		<p style="clear: both;">
			<span>

			</span>
			<span style="margin-left: 30px;">
				(注：不支持中日文，控制台输出版本号和数据)
			</span>
		</p>
	</div>
</body>

</html>